package com.example.mybatisplusdemo.controller;


import com.example.mybatisplusdemo.entity.StudentInfo;
import com.example.mybatisplusdemo.service.IStudentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author keson
 * @since 2021-06-23
 */
@RestController
@RequestMapping("/student-info")
public class StudentInfoController {

    @Autowired
    private IStudentInfoService studentInfoService;

    @GetMapping("listAll")
    public List<StudentInfo> listAll(){
        return studentInfoService.listAll();
    }

}

